package com.navercorp.pinpoint.plugin.businessMethod;

import com.navercorp.pinpoint.common.trace.TraceMetadataProvider;
import com.navercorp.pinpoint.common.trace.TraceMetadataSetupContext;

/**
 * Created by Irany 2018/8/22 16:17
 */
public class GeneralConfigMetadataProvider implements TraceMetadataProvider {
    @Override
    public void setup(TraceMetadataSetupContext context) {
        //设定当前插件的ServiceType，既插件的唯一身份
        context.addServiceType(GeneralConfigPlugin.BIZLOG_SERVICE_TYPE);
        //设定当前插件要展示的参数
        context.addAnnotationKey(GeneralConfigPlugin.BIZLOG_ANNOTATION_KEY_INFO);
    }
}